package com.aos.erp.message.mapper;

import com.aos.erp.common.dao.mapper.SuperMapper;
import com.aos.erp.message.dto.MessageRecordWaitPushItemDTO;
import com.aos.erp.message.model.MRWaitPushInfo;
import com.aos.erp.message.model.vo.MRConditionVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;


public interface MRWaitPushMapper extends SuperMapper<MRWaitPushInfo> {

    /**
     * 分页查询消息记录列表
     * @param pageBean
     * @param param
     * @return
     */
    List<MessageRecordWaitPushItemDTO> pageRecordList(IPage<MessageRecordWaitPushItemDTO> pageBean, @Param("param") MRConditionVo param);

    @Update("update t_mr_wait_push set mr_push_count=mr_push_count+1 where id=${dataId}")
    void updatePushCount(@Param("dataId") long dataId);

}
